package com.fq.domain;

import com.fq.ioc.annotation.Component;
import com.fq.ioc.annotation.Value;

/**
 * Created by jifang on 15/12/31.
 */
@Component(id = "id1")
public class Bean {

    @Value(value = "true")
    private Boolean usefull;

    @Value(value = "3.14")
    private Double rate;

    @Value("翡青")
    private String name;

    public Boolean getUsefull() {
        return usefull;
    }

    public void setUsefull(Boolean usefull) {
        this.usefull = usefull;
    }

    public Double getRate() {
        return rate;
    }

    public void setRate(Double rate) {
        this.rate = rate;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Bean{" +
                "usefull=" + usefull +
                ", rate=" + rate +
                ", name='" + name + '\'' +
                '}';
    }
}
